package com.qianfeng.openapi.web.master.mapper;

import com.qianfeng.openapi.web.master.pojo.AdminUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author LJF
 * @Date 2020/7/1 10:42
 * @Version 1.0
 */
@Repository
public interface AdminUserMapper {

    AdminUser findUser(AdminUser adminUser);

    int insertAdminUser(AdminUser adminUser);

    int updateAdminUser(AdminUser adminUser);

    int deleteAdminUser(Integer id);

    AdminUser getAdminUserById(Integer id);

    List<AdminUser> getAllAdminUsers();


    void deleteAdminUsers(Integer[] ids);

    List<AdminUser> selectAdminUserByCondition(@Param("email") String email, @Param("realName") String realName,@Param("status") Integer status);

}
